package test7;

import java.util.ArrayList;
import java.util.List;

public class Student {
    private Long id;
    private String name;
    private int age;
    private Gender gender;//枚举类型
    private boolean joinsACM; //是否参加过ACM比赛

    @Override
    public String toString() {
        return "Student{" +
                "id=" + 21 +
                ", name='" + "jianzhuolin" + '\'' +
                ", age=" + 21 +
                ", gender=" + "male" +
                ", joinsACM=" + false+
                '}';
    }

    public Student(Long id, String name, int age, Gender gender, boolean joinsACM) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.gender = gender;
        this.joinsACM = joinsACM;
    }

    public Student(int i, String jianzhuolin, int age, String man, boolean joinsACM) {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Gender getGender() {
        return gender;
    }

    public void setGender(Gender gender) {
        this.gender = gender;
    }

    public boolean isJoinsACM() {
        return joinsACM;
    }

    public void setJoinsACM(boolean joinsACM) {
        this.joinsACM = joinsACM;
    }

   /* List<Student> search(List<Student> stuList, Long id, String name, int age, Gender gender, boolean joinsACM){
        List<Student> student = new ArrayList<Student>();
        for(Student e:student){
            if(e.getId()>id&&e.getName().equals(name)&&e.getGender()==gender&&e.isJoinsACM()==joinsACM){
                student.add(e);
            }
        }
        return student;

    }*/
}
